package service;

import dao.FruitDao;
import entity.Fruit;

import java.util.List;

public class FruitService {
    FruitDao dao = new FruitDao();
    public List<Fruit>list(){
        return dao.list();
    }
    public Fruit fruitId(String fruitId){
        return dao.fruitId(fruitId);
    }

    public int delete(int fruitId){
        return dao.delete(fruitId);
    }
}
